package com.zy.servlet.user;

import com.zy.entity.User;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * 处理用户编辑请求的Servlet
 */
@WebServlet("/editUser")
public class EditUserServlet extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) {
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        String role = request.getParameter("role");
        double balance = Double.parseDouble(request.getParameter("balance"));
        System.out.println(username + " " + password + " " + role + " " + balance);
    }
      
}